package stud.mpgame.server.preview;

import stud.mpgame.network.MessageDescription;


/**
 * Created by IntelliJ IDEA.
 * User: Yarik
 */
public class ReadyToGameMessageDescription extends MessageDescription{

    private static final int ID = 5;
    private static ReadyToGameMessageDescription instance = null;

    public ReadyToGameMessageDescription() {
        this.registerUserObject(ID, ReadyToGame.class);
    }

    public static ReadyToGameMessageDescription getInstance() {
        if(instance == null){
            instance = new ReadyToGameMessageDescription();
            MessageDescription.registerDescription(instance);
        }
        return instance;
    }

    public int getID() {
        return ID;
    }

}
